<?php
$exmatinfo = $_POST['info'];
$exmatid = $_POST['id'];
require('../../cofd/common.php');
$stmt = $conn->prepare("UPDATE exam_page SET exmatother = ? WHERE exmatid = ?");
$stmt->bind_param('ss', $exmatinfo, $exmatid); 
if ($stmt->execute()) {
    echo json_encode(array('status' => 200, 'msg' => '操作成功'));
} else {
    echo json_encode(array('status' => 400, 'msg' => '操作失败'));
}
$stmt->close();
$conn->close();